// 基地址
const BASEURL = "https://www.uinav.com"
export default function({url,method,data}){
  return new Promise((resolve, reject) => {
    uni.request({
      url: BASEURL + url,
      method,
      data,
      success: (res) => {
        if (res.data.meta.status === 200) {
          resolve(res.data.message)
        }
      }
    })
  })
}
